import { createApp } from "vue";
import "./assets/css/index.less";
import "normalize.css";
import router from "./router";
import store from "./store";
import App from "./App.vue";
import { mainStore } from "@/store/main";
import "@/assets/css/iconfont.css";
const app = createApp(App);
app.use(store);
const stores = mainStore();
if (localStorage.getItem("userInfo")) stores.userInfo = JSON.parse(localStorage.getItem("userInfo"));
if (localStorage.getItem("token")) stores.setMenu();
app.use(router).mount("#app");
